<?php
/**
 * Created by PhpStorm.
 * User: zlkmu
 * Date: 2017/8/31
 * Time: 0:18
 */
    require_once ('FinanceFeeManage.php');
    require_once ('../Common.php');

    $data = $_REQUEST['fee_data'];
    if(!isset($data)){
        exit(json_encode(array('state'=>0, 'error'=>'POST_ERROR')));
    }

    $ffm = new FinanceFeeManage();
    $r = $ffm->addSectionFinanceFee($data);
    if($r){
        echo json_encode(array('state'=>1));
    }
    else{
        echo json_encode(array('state'=>0, 'error'=>'ADD_SECTION_FEE_ERROR'));
    }





?>